package com.example.demo.mapper;

import com.example.demo.entity.Wallet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 三石
* @description 针对表【wallet】的数据库操作Mapper
* @createDate 2024-06-13 09:00:04
* @Entity com.example.demo.entity.Wallet
*/
@Mapper
public interface WalletMapper extends BaseMapper<Wallet> {

    @Select("select * from wallet where user_id = #{userId}")
    Wallet selectByUserId(Long userId);
}




